package com.lq.service.impl;

import com.lq.mapper.TagMapper;
import com.lq.pojo.Tag;
import com.lq.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagServiceImpl implements TagService {

    @Autowired
    private TagMapper tagMapper;

    @Override
    public List<Tag> getAllTag(Integer userId) {
        return tagMapper.getAllTag(userId);
    }

    @Override
    public boolean saveTag(String tagContent, Integer userId) {
        return tagMapper.saveTag(tagContent,userId);
    }
}
